﻿@model Enter.Mvc.Mall.Model.Category.CategoryModels
<div class="search-bar">
    <ul>
        <li class="key-word">
            <label id="J_filterSearchLabel" class="searchBar-label" for="filterSearchKeyWord"
                style="display: none;">
                在您选择的条件下搜索</label>
            <input id="filterSearchKeyWord" type="text" title="在您选择的条件下搜索" class="text" name="key"
                size="10" value="" />
        </li>
        <li>
            <div class="search-menu" id="J_FilterCats">
                @if (Model != null)
                {
                    <span>@Model.CurrentCateName</span>
                    <input id="cat" name="cat" value="@Enter.Common.RequestStrHelper.GetStringFromRequest("cat")" type="hidden" />
                    <input id="prop" name="prop" value="@Enter.Common.RequestStrHelper.GetStringFromRequest("prop")" type="hidden" />
                    <input id="brand" name="brand" value="@Enter.Common.RequestStrHelper.GetStringFromRequest("brand")" type="hidden" />
                    <input id="currentIndex" name="currentIndex" value="@Enter.Common.RequestStrHelper.GetStringFromRequest("currentIndex")" type="hidden" />
                    <input id="sort" name="sort" value="@Enter.Common.RequestStrHelper.GetStringFromRequest("sort")" type="hidden" />                 
                }
            </div>
            <div class="search-menu">
                @if (Model != null)
                {
                    
                    <ul class="sub-menu">
                        <li class="all-fenlei"><a href="#;">所有分类</a></li>
                        <li class="fa-fenlei" data-value="@Model.cate.CNO"><a href="#;">@Model.cate.CName</a></li>
                        @for (var i = 0; i < Model.MinCateList.Count; i++)
                        {
                            var item = Model.MinCateList[i];
                            <li class="fa-fenlei" data-value="@item.CNO"><a href="#;">@item.CName</a></li>                                                       
                        }
                    </ul>
                }
            </div>
        </li>
    </ul>
    <b class="btnSearch-wrap">
        <input type="submit" value="搜索" class="btnSearch" id="J-keybtn" />
    </b>
</div>
